-- GENERATED SPELL FOR [Krug Skullsplit] --


function spell0_15612(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15612', 5329, 1)
end

function spell1_15612(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(15548,pUnit)
pUnit:RegisterEvent('Sorts_15612', 10277, 1)
end

function Sorts_15612(pUnit, Event)
local choix_sorts_15612 = math.random(0, 1)
if choix_sorts_15612 == 0 then
pUnit:RegisterEvent('spell0_15612', 1, 1)
end
if choix_sorts_15612 == 1 then
pUnit:RegisterEvent('spell1_15612', 1, 1)
end
end

function mob15612_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15612', math.random(1500, 3000), 1)
end

function mob15612_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15612_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15612_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15612, 1, 'mob15612_Action')
RegisterUnitEvent(15612, 2, 'mob15612_Leave')
RegisterUnitEvent(15612, 3, 'mob15612_Kill')
RegisterUnitEvent(15612, 4, 'mob15612_Die')
